<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui" template="/paginas/template.xhtml">

	<ui:define name="corpoForm">
		<h:form id="formEditarNaturezaNF" prependId="false">

			<p:panelGrid columns="1" styleClass="botoes" id="botoes">
				<p:commandButton value="#{rsc.label_salvar}" styleClass="botao"
					action="#{manterNaturezaNFBean.alterar}" ajax="false"
					onclick="setTimeout('document.getElementById(\'' + this.id + '\').disabled=true;', 50);" rendered="#{p:ifGranted('ALTERAR_NATUREZANF')}" 
					title="#{rsc.title_alterar}" />
			</p:panelGrid>

			<p:panel id="pnlInfo" header="#{rsc.label_alterarNaturezaNF}"
				toggleable="true" toggleSpeed="500">

				<p:panelGrid columns="2">
					<p:outputLabel value="#{rsc.label_codigoNaturezaNF}:"
						for="txtCodigoNaturezaNF" styleClass="obrigatorio" />

					<p:inputText disabled="true" label="#{rsc.label_codigoNaturezaNF}"
						id="txtCodigoNaturezaNF" maxlength="150" size="10"
						title="#{rsc.label_naturezaNF}"
						value="#{manterNaturezaNFBean.entidade.codigo}" />

					<p:outputLabel value="#{rsc.label_naturezaNF}" for="txtNaturezaNF"
						styleClass="obrigatorio" />

					<p:inputText label="#{rsc.label_naturezaNF}" id="txtNaturezaNF"
						maxlength="150" size="40" title="#{rsc.label_naturezaNF}"
						value="#{manterNaturezaNFBean.entidade.nome}" />

					<p:outputLabel value="#{rsc.label_ativo}"
						for="chkAtivo" />

					<p:selectBooleanCheckbox label="#{rsc.label_ativo}" id="chkAtivo"
						title="#{rsc.label_ativo}"
						value="#{manterNaturezaNFBean.entidade.ativo}" />
				</p:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:composition>

